Template:FPCgloss/doc: Difference between revisions

From Sarkarverse
Jump to navigation Jump to search
m (1 revision)
 
(clean up)
 
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->
The {{tlx|FPCgloss}} template is used to create links from a word or phrase to corresponding entry in the [[Wikipedia:Featured picture candidates/Glossary]] page.  It makes proper use of the <code><nowiki><dfn></nowiki></code> HTML element (as documented at the parent meta-template, {{tl|glossary link}}).
The {{tlx|FPCgloss}} template is used to create links from a word or phrase to corresponding entry in the [[Sarkarverse:Featured picture candidates/Glossary]] page.  It makes proper use of the <code><nowiki><dfn></nowiki></code> HTML element (as documented at the parent meta-template, {{tl|glossary link}}).


==Usage==
==Usage==
Line 7: Line 7:
Syntax:
Syntax:
*{{tlx|FPCgloss|<var>term in glossary</var>|<var>text in article</var>}}
*{{tlx|FPCgloss|<var>term in glossary</var>|<var>text in article</var>}}
This template makes it very simple to add links, in FPC nominations to entries in the [[Wikipedia:Featured picture candidates/Glossary]]. It takes one or two parameters, depending on needs, as detailed below.
This template makes it very simple to add links, in FPC nominations to entries in the [[Sarkarverse:Featured picture candidates/Glossary]]. It takes one or two parameters, depending on needs, as detailed below.


Wikitext:
Wikitext:
Line 17: Line 17:
:The only technical flaw I can see is some green-magenta {{FPCgloss|CA|chromatic aberration}} but that's not too serious.
:The only technical flaw I can see is some green-magenta {{FPCgloss|CA|chromatic aberration}} but that's not too serious.


The first parameter is the <em>exact</em> name of the term to be linked to in [[Wikipedia:Featured picture candidates/Glossary]] (or any alias of it as defined in the glossary with {{tlx|anchor}}), and the second parameter is the text string to be wikilinked from in the article.  For example, in this case the term to be defined is covered at [[Wikipedia:Featured picture candidates/Glossary#ca]], so ''CA'' is the first parameter.
The first parameter is the ''exact'' name of the term to be linked to in [[Sarkarverse:Featured picture candidates/Glossary]] (or any alias of it as defined in the glossary with {{tlx|anchor}}), and the second parameter is the text string to be wikilinked from in the article.  For example, in this case the term to be defined is covered at [[Sarkarverse:Featured picture candidates/Glossary#ca]], so ''CA'' is the first parameter.


The second parameter is optional if the text string to be wikilinked from in the article is exactly the same (including case, plurality, etc.) as the glossary term (or alternative {{tnull|anchor}}}} in the first parameter:
The second parameter is optional if the text string to be wikilinked from in the article is exactly the same (including case, plurality, etc.) as the glossary term (or alternative {{tnull|anchor}}}} in the first parameter:
Line 29: Line 29:
<includeonly>
<includeonly>
<!-- CATEGORIES HERE, THANKS -->
<!-- CATEGORIES HERE, THANKS -->
[[Category:Wikipedia featured content templates|{{PAGENAME}}]]
[[Category:Sarkarverse featured content templates|{{PAGENAME}}]]
[[Category:Glossary templates|{{PAGENAME}}]]
[[Category:Glossary templates|{{PAGENAME}}]]
</includeonly>
</includeonly>

Latest revision as of 00:51, 21 March 2014

The {{FPCgloss}} template is used to create links from a word or phrase to corresponding entry in the Sarkarverse:Featured picture candidates/Glossary page. It makes proper use of the <dfn> HTML element (as documented at the parent meta-template, {{glossary link}}).

Usage

Syntax:

  • {{FPCgloss|term in glossary|text in article}}

This template makes it very simple to add links, in FPC nominations to entries in the Sarkarverse:Featured picture candidates/Glossary. It takes one or two parameters, depending on needs, as detailed below.

Wikitext:

The only technical flaw I can see is some green-magenta {{FPCgloss|CA|chromatic aberration}} but that's not too serious.

Result:

The only technical flaw I can see is some green-magenta chromatic aberration but that's not too serious.

The first parameter is the exact name of the term to be linked to in Sarkarverse:Featured picture candidates/Glossary (or any alias of it as defined in the glossary with {{anchor}}), and the second parameter is the text string to be wikilinked from in the article. For example, in this case the term to be defined is covered at Sarkarverse:Featured picture candidates/Glossary#ca, so CA is the first parameter.

The second parameter is optional if the text string to be wikilinked from in the article is exactly the same (including case, plurality, etc.) as the glossary term (or alternative {{anchor}}}} in the first parameter:

The only technical flaw I can see is some green-magenta {{FPCgloss|CA}} but that's not too serious.

Result:

The only technical flaw I can see is some green-magenta ca but that's not too serious.