Difference between revisions of "Template:Lex/doc"

From EVE University Wiki
Jump to: navigation, search
m
m (Rewrite. Following the rewrite of the template.)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<noinclude>{{main|Template:Lex}}</noinclude>
 
 
; Description
 
; Description
: This is a template exclusively used for the [[EVE Lexicon]] page, to tidy up the list of abbreviations and acronyms and make editing the list easy without losing functionality like highlighting words, allowing for links (anchors) etc.
+
: This is a template exclusively used for the [[EVE Lexicon]] page, to tidy up the list of abbreviations and acronyms and make editing the list easy without losing functionality like highlighting words, allowing for links (anchors) etc. It also creates an anchor so that it can be linked.
; Usage
+
 
: <code><nowiki>{{lex|word|description}}</nowiki></code>
+
; Syntax
; Output
+
: {{T|Lex|word|description}}
{| style="padding-left:20px;" <!-- This is purely to line up the indentations for this page -->
+
:: '''word''' - Abbreviation, acronym or word that needs explanation. Word is also used to create an anchor so that it can be linked to.
{{lex|word|description}}
+
:: '''description''' - The meaning of word (Can contain formatting, links, etc.)
|}
+
 
<includeonly>[[Category:Template]]</includeonly>
+
; Sample
 +
: {{Code|<nowiki>{{Lex|Word|Description}}</nowiki>}} gives...
 +
{{Lex|Word|Description}}
 +
 
 +
: {{Code|<nowiki>{{Lex|Word|
 +
# Item one
 +
# Item two}}</nowiki>}} gives...
 +
{{Lex|Word|
 +
# Item one
 +
# Item two}}
 +
 
 +
<includeonly>[[Category:Formatting templates]]</includeonly>
 
<noinclude>[[Category:Template documentation]]</noinclude>
 
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 14:50, 26 April 2022

Description
This is a template exclusively used for the EVE Lexicon page, to tidy up the list of abbreviations and acronyms and make editing the list easy without losing functionality like highlighting words, allowing for links (anchors) etc. It also creates an anchor so that it can be linked.
Syntax
{{Lex|<word>|<description>}}
word - Abbreviation, acronym or word that needs explanation. Word is also used to create an anchor so that it can be linked to.
description - The meaning of word (Can contain formatting, links, etc.)
Sample
{{Lex|Word|Description}}
gives...
Word
Description
{{Lex|Word| # Item one # Item two}}
gives...
Word
  1. Item one
  2. Item two