Actions

User

Difference between revisions of "QDP2012/30/1"

From The RadioReference Wiki

< User:QDP2012‎ | 30
m
m
Line 43: Line 43:
 
----
 
----
 
----
 
----
====Example of using this template for a US State====
+
====How to invoke this template to show only the default message====
*<nowiki>
+
*<nowiki>{{Text_CatGeneral}}</nowiki><br/>
{{Cat_State</nowiki><br/><nowiki>
 
|CategoryName=Texas</nowiki><br/><nowiki>
 
|StateWikiArticle=Texas (US)}}</nowiki><br/>
 
 
----
 
----
 
=====Result=====
 
=====Result=====
Welcome to the "Category:Texas" category which is a sub-category of "[[:Category:Collaboration]]". Please assign this category to all articles relating to information from entities in the state of Texas.
 
  
To assign this category to an article, '''please add <nowiki>[[</nowiki>Category:Texas<nowiki>]]</nowiki> as the last line.'''
 
  
 +
----
 +
----
 +
====How to invoke this template to show both default and custom messages====
 +
*<nowiki>
 +
{{Text_CatGeneral|MoreText=<br/><br/>This is a custom message.}}</nowiki><br/>
 +
----
 +
=====Result=====
  
You may find this state's Wiki article at '''[[Texas (US)]]'''.
 
  
 
----
 
----
 
----
 
----
====Example of using this template for the US District of Columbia====
+
====How to invoke this template to show only a custom message====
 
*<nowiki>
 
*<nowiki>
{{Cat_State</nowiki><br/><nowiki>
+
{{Text_CatGeneral|HideFreqText=|MoreText=<br/><br/>This is a custom message.}}</nowiki><br/>
|CategoryName=District of Columbia</nowiki><br/><nowiki>
 
|loctype=district</nowiki><br/><nowiki>
 
|StateWikiArticle=District of Columbia (DC)}}</nowiki><br/>
 
 
----
 
----
 
=====Result=====
 
=====Result=====
Welcome to the "Category:District of Columbia" category which is a sub-category of "[[:Category:Collaboration]]". Please assign this category to all articles relating to information from entities in the district of District of Columbia.
 
 
To assign this category to an article, '''please add <nowiki>[[</nowiki>Category:District of Columbia<nowiki>]]</nowiki> as the last line.'''
 
 
 
You may find this district's Wiki article at '''[[District of Columbia (DC)]]'''.
 
  
 
----
 
----
 
----
 
----
====Example of using this template for a Canadian Province====
+
====How to invoke this template to show neither the default nor a custom message====
 
*<nowiki>
 
*<nowiki>
{{Cat_State</nowiki><br/><nowiki>
+
{{Text_CatGeneral|HideFreqText=|MoreText=|}}</nowiki><br/>
|CategoryName=Quebec</nowiki><br/><nowiki>
 
|loctype=province</nowiki><br/><nowiki>
 
|StateWikiArticle=Quebec (CA)</nowiki><br/><nowiki>
 
|ParentCat=Province Data}}</nowiki><br/>
 
 
----
 
----
 
=====Result=====
 
=====Result=====
Welcome to the "Category:Quebec" category which is a sub-category of "[[:Category:Province Data]]". Please assign this category to all articles relating to information from entities in the province of Quebec.
 
 
To assign this category to an article, '''please add <nowiki>[[</nowiki>Category:Quebec<nowiki>]]</nowiki> as the last line.'''
 
 
  
You may find this province's Wiki article at '''[[Quebec (CA)]]'''.
 
 
----
 
----
 
----
 
----

Revision as of 15:40, 6 September 2015


Home Prompts Move TRVA Cat Tree Links CECC Pgmg Templates

Tasks: Art, Cat, Tmp, DB
10, 13, 27, 29, 30/1
32, 43, 44,
193,194



Conv&Stds
Sandbox

Edit
PrfxIdx
..WRRR
..USBR 1
..USBR 76
..PHT
Cat List Custom
Avoid Unused
35, 36, 37, 38,

CT (C E S N) SC
Categories to be DELETED
Templates to be DELETED
Pages to be DELETED

TL (G IB C S D)
B, C, D, F, I
Tk, Tb, Ct, Tx. M, S, TO
Avoid Unused

InfoBox project related:
Template:ForTestingOnly
OLD: NEW:






.

Documentation Sub-page for Template:Text_CatGeneral

Scope of Use

Purpose

Directly Invoked By

Not Intended For


Variables

  • Specified values will override default values.
  • Specified values and Default values are all case-sensitive.
Variable Name Var Description Expected Value(s) Default Value Notes
HideFreqText
  • either unspecified
  • or specified with no value
unspecified
  • When unspecified, the main message displays (and will be above any custom message specified by the MoreText variable).
  • When specified with no value, the main message is hidden.
  • Caution: Please do not specify an actual value for this variable, as the results will be beyond the designs of both this template and the template(s) that are expected to invoke this template.
MoreText
  • either unspecified
  • or specified with a custom-message
unspecified
  • When unspecified, this variable is hidden.
  • When specified, any custom message assigned to this variable with be displayed. If the main message is not hidden (using the HideFreqText variable), then the main message will be displayed above the custom message.

Examples

  • The horizontal lines below separate examples for clarity and do not appear when template is invoked.


How to invoke this template to show only the default message

  • {{Text_CatGeneral}}

Result


How to invoke this template to show both default and custom messages

  • {{Text_CatGeneral|MoreText=<br/><br/>This is a custom message.}}

Result


How to invoke this template to show only a custom message

  • {{Text_CatGeneral|HideFreqText=|MoreText=<br/><br/>This is a custom message.}}

Result


How to invoke this template to show neither the default nor a custom message

  • {{Text_CatGeneral|HideFreqText=|MoreText=|}}

Result