Difference between revisions of "Template:FPCgloss/doc"

From blackwiki
Jump to navigation Jump to search
imported>Armbrust
(create doc subpage)
 
imported>Andrybak
m (+category sort key)
 
(3 intermediate revisions by 3 users not shown)
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, [[Template:glossary link]]).
+
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}}).
  
 
==Usage==
 
==Usage==
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 <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 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 27: Line 27:
 
:The only technical flaw I can see is some green-magenta {{FPCgloss|CA}} but that's not too serious.
 
:The only technical flaw I can see is some green-magenta {{FPCgloss|CA}} but that's not too serious.
  
<includeonly>
+
<includeonly>{{Sandbox other||
<!-- CATEGORIES HERE, THANKS -->
+
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Wikipedia featured content templates|{{PAGENAME}}]]
+
[[Category:Wikipedia featured content templates|picture candidates/Glossary]]
[[Category:Glossary templates|{{PAGENAME}}]]
+
[[Category:Glossary link templates]]
</includeonly>
+
}}</includeonly>

Latest revision as of 15:08, 18 April 2020

The {{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 <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 Wikipedia: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 Wikipedia: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 Wikipedia: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.