Template:Glossary item View history

(noted code, added support for noanchor=yes, up to four non displayed anchors anchor1, anchor2 ..., update and added(optional) split dates display)
 
(56 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{Doc}}
{{Doc}}
</noinclude><includeonly><!-- Begin template code
<!--{| class="wikitable sortable" border="1"
-->|- valign="top" <!-- Start new table row
!colspan="5"|<font size="5">Waze Glossary</font><br>(With sortable entries!)
-->{{#ifeq:{{{noanchor|}}}|yes|<!-- If "noanchor" is set to yes, don't output any anchors
|-
!Glossary Term!!Abbreviation<br />Acronym<br />Alias!!class="unsortable"|Description!!width="10" data-sort-type="isoDate"|<small>Date Updated<br />----<br />Date Added</small>
{{User:PesachZ/Glossary/Glossary item|term=No-Anchor title|Noanchor|Hidden|NA|NAT|desc=This row displays identically to other rows but does not produces any anchors. A link to #No-Anchor title will not bring you to this entry.|updated=2015-02-08|added=2014-02-13|noanchor=yes|related1=testing}}
{{User:PesachZ/Glossary/Glossary item|term=No-Anchor title|Noanchor|Hidden|NA|NAT|desc=This row displays identically to other rows but does not produces any anchors. A link to #No-Anchor title will not bring you to this entry.|updated=2015-02-08|added=2014-02-13|noanchor=yes|jump1=No-Anchor title}}-->
</noinclude><includeonly><!--  
###############################################################################
        Begin template code
############################################################################### --><!-- begin table row -->
|- valign="top" <!-- Start new table row -->
|<!-- ### Begin Term Cell ### -->{{#ifeq:{{{noanchor|}}}|yes|<!-- If "noanchor" is set to yes, don't output any anchors
-->|<!-- If not output an anchor starting with the term name -->{{anchor|{{{term|}}}<!-- Then if up to 4 additional aliases are present
-->|<!-- If not output an anchor starting with the term name -->{{anchor|{{{term|}}}<!-- Then if up to 4 additional aliases are present
-->{{#if:{{{1|}}}|<!-- add then to the anchor preceded by a pipe -->{{!}}{{{1|}}}<!-- End IF for 1st alias -->}}<!-- repeat 3 more times
-->|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{anchor1|}}}<!-- if up to 4 non display anchors are specified, add them to the anchor
-->{{#if:{{{2|}}}|{{!}}{{{2|}}}}}{{#if:{{{3|}}}|{{!}}{{{3|}}}}}{{#if:{{{4|}}}|{{!}}{{{4|}}}}}{{#if:{{{anchor1|}}}|{{!}}{{{anchor1|}}}}}<!-- if up to 4 non display anchors are specified, add them to the anchor
-->|{{{anchor2|}}}|{{{anchor3|}}}|{{{anchor4|}}}<!--
-->{{#if:{{{anchor2|}}}|{{!}}{{{anchor2|}}}}}{{#if:{{{anchor3|}}}|{{!}}{{{anchor3|}}}}}{{#if:{{{anchor4|}}}|{{!}}{{{anchor4|}}}}}<!--
end anchor -->}}<!--
end anchor -->}}<!--
end IF "noanchor" -->}}
end IF "noanchor" -->}}<!-- Place anchors at beginning of first cell then
| '''{{{term|}}}'''<!-- Fill first cell of row with "term" -->
-->'''{{{term|}}}'''<!-- Fill first cell of row with "term" -->
| <!-- use trim for unnamed parameters to eliminate extra whitespace
| <!-- use trim for unnamed parameters to eliminate extra whitespace
-->{{Trim| {{{1|}}} }}<!-- fill second cell with 1st alias
-->{{Trim| {{{1|~}}} }}<!-- fill second cell with 1st alias, if there is no alias put a "~" so it goes to the bottom when sorting this column.
-->{{#if:{{{2|}}}<!-- if there's a second alias -->
-->{{#if:{{{2|}}}<!-- if there's a second alias -->
|,}}<!-- then place a comma -->
|,}}<!-- then place a comma
{{Trim|{{{2|}}}}}<!-- followed by the second alias
--> {{Trim|{{{2|}}}}}<!-- followed by the second alias
-->{{#if:{{{3|}}}|,}} {{Trim|{{{3|}}}}}{{#if:{{{4|}}}|,}} {{Trim|{{{4|}}}}} <!-- repeat for up to 4 aliases -->
-->{{#if:{{{3|}}}|,}} {{Trim|{{{3|}}}}}{{#if:{{{4|}}}|,}} {{Trim|{{{4|}}}}} <!-- repeat for up to 4 aliases -->
| {{{desc|}}} <!-- place the description in the third cell -->
|<!-- ## Start description cell ## -->{{#if:{{{jump1|}}}|{{note label|{{{jump1|}}}-{{{term|}}}}}}}<!-- If jump1 is set create a jump back link using the {{note label}} template with the identifier in the format of related_article-term to match the related links identifiers. Do the same for the following jump parameters
|<small><small> {{{updated|}}}{{#if:{{{added|}}}|<br>
-->{{#if:{{{jump2|}}}|{{note label|{{{jump2|}}}-{{{term|}}}}}}}{{#if:{{{jump3|}}}|{{note label|{{{jump3|}}}-{{{term|}}}}}}}{{#if:{{{jump4|}}}|{{note label|{{{jump4|}}}-{{{term|}}}}}}}<!--comment out end jump if}}<!-- end jump if
{{{added|}}}}} </small></small><!-- place the last updated date followed the date added on the next line if specified in the 4th cell --></includeonly>
-->{{{desc|}}} <!-- place the description under the jump links -->
{{#if:{{{related1|}}}<!-- If there is a related1 entry that links into this entry
-->|{{#if:{{{desc|}}}|<small><small><small><br />
<!-- small empty line between related entries and description -->
</small></small></small>}}<!-- add a line break if there is a desc above
--><small>Related entries:</small> <sub>{{ref|{{{term|}}}-{{{related1|}}}|{{{related1|}}}}}</sub> <!-- Then put the {{ref}} link for that term here, and check for additional related entries adding them in with  • between them.
-->{{#if:{{{related2|}}}| • <sub>{{ref|{{{term|}}}-{{{related2|}}}|{{{related2|}}}}}</sub>}} {{#if:{{{related3|}}}| • <sub>{{ref|{{{term|}}}-{{{related3|}}}|{{{related3|}}}}}</sub>}} {{#if:{{{related4|}}}| • <sub>{{ref|{{{term|}}}-{{{related4|}}}|{{{related4|}}}}}</sub>}} {{#if:{{{related5|}}}| • <sub>{{ref|{{{term|}}}-{{{related5|}}}|{{{related5|}}}}}</sub>}} {{#if:{{{related6|}}}| • <sub>{{ref|{{{term|}}}-{{{related6|}}}|{{{related6|}}}}}</sub>}} {{#if:{{{related7|}}}| • <sub>{{ref|{{{term|}}}-{{{related7|}}}|{{{related7|}}}}}</sub>}} {{#if:{{{related8|}}}| • <sub>{{ref|{{{term|}}}-{{{related8|}}}|{{{related8|}}}}}</sub>}} {{#if:{{{related9|}}}| • <sub>{{ref|{{{term|}}}-{{{related9|}}}|{{{related9|}}}}}</sub>}} {{#if:{{{related10|}}}| • <sub>{{ref|{{{term|}}}-{{{related10|}}}|{{{related10|}}}}}</sub>}} {{#if:{{{related11|}}}| • <sub>{{ref|{{{term|}}}-{{{related11|}}}|{{{related11|}}}}}</sub>}} {{#if:{{{related12|}}}| • <sub>{{ref|{{{term|}}}-{{{related12|}}}|{{{related12|}}}}}</sub>}} {{#if:{{{related13|}}}| • <sub>{{ref|{{{term|}}}-{{{related13|}}}|{{{related13|}}}}}</sub>}} {{#if:{{{related14|}}}| • <sub>{{ref|{{{term|}}}-{{{related14|}}}|{{{related14|}}}}}</sub>}} {{#if:{{{related15|}}}| • <sub>{{ref|{{{term|}}}-{{{related15|}}}|{{{related15|}}}}}</sub>}} {{#if:{{{related16|}}}| • <sub>{{ref|{{{term|}}}-{{{related16|}}}|{{{related16|}}}}}</sub>}} {{#if:{{{related17|}}}| • <sub>{{ref|{{{term|}}}-{{{related17|}}}|{{{related17|}}}}}</sub>}} {{#if:{{{related18|}}}| • <sub>{{ref|{{{term|}}}-{{{related18|}}}|{{{related18|}}}}}</sub>}} {{#if:{{{related19|}}}| • <sub>{{ref|{{{term|}}}-{{{related19|}}}|{{{related19|}}}}}</sub>}} {{#if:{{{related20|}}}| • <sub>{{ref|{{{term|}}}-{{{related20|}}}|{{{related20|}}}}}</sub>}} <!--end related1 if-->}}
|<!-- ## Start date cell ## -->style=text-align:center;|<small><small> {{#if:{{{updated|}}}<!--if there an updated date then
-->|{{{updated|}}}&nbsp;(U)<!-- place the last updated date followed by "(U)" in the 4th cell, and end if>-->}}{{#if:{{{added|}}}<!-- if there is an added date... -->
    |{{#if:{{{updated|}}}<!-- then if there was also an updated date... -->
          |<br>}}<!-- add a line break -->
{{{added|}}}&nbsp;(A)}} </small></small><!-- followed by the date added with an "(A)" on the next line --></includeonly>

Latest revision as of 09:49, 19 April 2015

Documentation icon Template documentation[create]
Please add categories to the /doc subpage.
Subpages of this template.