Difference between revisions of "QDP2012/30/1"
From The RadioReference Wiki
< User:QDP2012 | 30
m |
m |
||
Line 28: | Line 28: | ||
* When unspecified, the main message displays (and will be above any custom message specified by the MoreText variable).<br/> | * When unspecified, the main message displays (and will be above any custom message specified by the MoreText variable).<br/> | ||
*When specified with no value, the main message is hidden.<br/> | *When specified with no value, the main message is hidden.<br/> | ||
+ | ---- | ||
+ | *'''[[:Template:Text_CatStateOther]]''' hides the main message. | ||
+ | *'''[[:Template:Text_CatStateOtherFreq]]''' displays the main message. | ||
+ | |||
+ | ---- | ||
*'''''{{Color|red|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. | *'''''{{Color|red|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. | ||
|- | |- | ||
Line 36: | Line 41: | ||
*When unspecified, this variable is hidden.<br/> | *When unspecified, this variable is hidden.<br/> | ||
*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. | *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. | ||
+ | ---- | ||
+ | *'''[[:Template:Text_CatStateOther]]''' allows a custom message via MoreText. | ||
+ | *'''[[:Template:Text_CatStateOtherFreq]]''' allows a custom message via MoreText. | ||
+ | |||
|- | |- | ||
|} | |} |
Revision as of 00:29, 7 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 | |||
.
Contents
- 1 Documentation Sub-page for Template:Text_CatGeneral
- 1.1 Scope of Use
- 1.2 Variables
- 1.3 Examples
Documentation Sub-page for Template:Text_CatGeneral
Scope of Use
Purpose
- Template:Text_CatGeneral is designed to be a single-source text-template that provides a common and uniform structure for the text that is displayed in the mid-sections of both Template:Text_CatStateOther and Template:Text_CatStateOtherFreq.
- Variables listed below allow the main message to be shown or hidden, and/or custom-messages to be displayed when provided.
Directly Invoked By
- Template:Text_CatGeneral should be directly invoked only by Template:Text_CatStateOther and Template:Text_CatStateOtherFreq.
Not Intended For
- Template:Text_CatGeneral should not be directly invoked by any other template or category, although all templates and categories that invoke either Template:Text_CatStateOther or Template:Text_CatStateOtherFreq will indirectly invoke Template:Text_CatGeneral by transclusion.
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 |
|
unspecified |
| |
MoreText |
|
unspecified |
|
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=|}}