User:Nick Levinson/sandbox: Difference between revisions
Appearance
Content deleted Content added
Determining parameters of the Summary From template, in contemplation of expanding the template's documentation; and moved a blank line. |
New experiment, for a template modification (its use is not recommended). |
||
Line 15: | Line 15: | ||
__TOC__ |
__TOC__ |
||
This is an attempt to |
This is an attempt to redesign a template by adding parameters for wording that, in many situations, will be more precise. Use of this template is recommended for anywhere. I'm not confident in how I have programmed it, not having looked for all of the pertinent instructions. |
||
* No parameters: {{Summary from}} |
|||
== Template draft == |
|||
* Unnamed parameters, the value of each being an article title: |
|||
{{#if:{{{via|}}}| – via {{{via}}} {{link note|note={{#switch: {{{1|not-sentence}}} |
|||
** General case: |
|||
| s |
|||
*** Unnumbered parameters: |
|||
| sentence = Subscription required. |
|||
**** One parameter: |
|||
| subscription required |
|||
***** Implicit linking: {{Summary from|Language}} |
|||
}}}} [[Category:Subscription required using via]]|{{link note|note={{#switch: {{{1|not-sentence}}} |
|||
***** Explicit linking: {{Summary from|[[Language]]}} |
|||
| s |
|||
**** Two parameters: |
|||
| sentence = Subscription required. |
|||
***** Implicit linking: {{Summary from|Language|Congo}} |
|||
| subscription required |
|||
***** Explicit linking: {{Summary from|[[Language]]|[[Congo]]}} |
|||
}}}}{{#if:{{{libraries|}}}|subscription may be required or content may be available in libraries |
|||
**** Three parameters: |
|||
| s |
|||
***** Implicit linking: {{Summary from|Language|Congo|Whale}} |
|||
| sentence = Subscription may be required or content may be available in libraries. |
|||
***** Explicit linking: {{Summary from|[[Language]]|[[Congo]]|[[Whale]]}} |
|||
| subscription may be required or content may be available in libraries |
|||
*** Numbered parameters: |
|||
}} |
|||
**** One parameter: |
|||
}}<includeonly>[[Category:Pages containing links to subscription-only content]]</includeonly><noinclude>{{documentation}}</noinclude> |
|||
***** Implicit linking: {{Summary from|1=Language}} |
|||
***** Explicit linking: {{Summary from|1=[[Language]]}} |
|||
== Categorization draft == |
|||
**** Two parameters: |
|||
A new category would be created, probably [[:Category:Pages containing links to subscription-or-libraries content]]. |
|||
***** Implicit linking: {{Summary from|1=Language|2=Congo}} |
|||
***** Explicit linking: {{Summary from|1=[[Language]]|2=[[Congo]]}} |
|||
== Documentation draft == |
|||
**** Three parameters: |
|||
Existing documentation would be edited to reflect the new parameterization. |
|||
***** Implicit linking: {{Summary from|1=Language|2=Congo|3=Whale}} |
|||
***** Explicit linking: {{Summary from|1=[[Language]]|2=[[Congo]]|3=[[Whale]]}} |
|||
** Special case: italicization, using the {{Tl|Italic title}} or {{Tl|italic title}} template (both considered identical) and in which publication titles but not "(Preston book)" (as part of an article title) should be displayed in italics: |
|||
*** Italicization of one article title only: |
|||
**** Unnumbered parameters: |
|||
***** One parameter: |
|||
****** Implicit linking: {{Summary from|''Our Common Future''}} |
|||
****** Explicit linking: {{Summary from|''[[Our Common Future]]''}} |
|||
***** Two parameters: |
|||
****** Implicit linking: {{Summary from|Language|''Our Common Future''}} |
|||
****** Explicit linking: {{Summary from|[[Language]]|''[[Our Common Future]]''}} |
|||
***** Three parameters: |
|||
****** Implicit linking: {{Summary from|Language|''Our Common Future''|Whale}} |
|||
****** Explicit linking: {{Summary from|[[Language]]|''[[Our Common Future]]''|[[Whale]]}} |
|||
**** Numbered parameters: |
|||
***** One parameter: |
|||
****** Implicit linking: {{Summary from|1=''Our Common Future''}} |
|||
****** Explicit linking: {{Summary from|1=''[[Our Common Future]]''}} |
|||
***** Two parameters: |
|||
****** Implicit linking: {{Summary from|1=Language|2=''Our Common Future''}} |
|||
****** Explicit linking: {{Summary from|1=[[Language]]|2=''[[Our Common Future]]''}} |
|||
***** Three parameters: |
|||
****** Implicit linking: {{Summary from|1=Language|2=''Our Common Future''|3=Whale}} |
|||
****** Explicit linking: {{Summary from|1=[[Language]]|2=''[[Our Common Future]]''|3=[[Whale]]}} |
|||
*** Italicization of two article titles only: |
|||
**** Unnumbered parameters: |
|||
***** Two parameters: |
|||
****** Implicit linking: {{Summary from|''First Light'' (Preston book)|''Our Common Future''}} |
|||
****** Explicit linking: {{Summary from|[[First Light (Preston book)]]|''[[Our Common Future]]''}} |
|||
***** Three parameters: |
|||
****** Implicit linking: {{Summary from|Language|''Our Common Future''|''First Light'' (Preston book)}} |
|||
****** Explicit linking: {{Summary from|[[Language]]|''[[Our Common Future]]''|''[[First Light (Preston book)]]''}} |
|||
**** Numbered parameters: |
|||
***** Two parameters: |
|||
****** Implicit linking: {{Summary from|1=''First Light'' (Preston book)|2=''Our Common Future''}} |
|||
****** Explicit linking: {{Summary from|1=''[[First Light (Preston book)]]''|2=''[[Our Common Future]]''}} |
|||
***** Three parameters: |
|||
****** Implicit linking: {{Summary from|1=Language|2=''Our Common Future''|3=''First Light'' (Preston book)}} |
|||
****** Explicit linking: {{Summary from|1=[[Language]]|2=''[[Our Common Future]]''|3=''[[First Light (Preston book)]]''}} |
Revision as of 16:18, 29 July 2013
This is a Wikipedia user page. This is not an encyclopedia article. If you find this page on any site other than Wikipedia, you are viewing a mirror site. Be aware that the page may be outdated and that the user to whom this page belongs may have no personal affiliation with any site other than Wikipedia itself. The original page is located at http://en.wikipedia.org/wiki/User:Nick_Levinson/sandbox. |
This is an attempt to redesign a template by adding parameters for wording that, in many situations, will be more precise. Use of this template is recommended for anywhere. I'm not confident in how I have programmed it, not having looked for all of the pertinent instructions.
Template draft
(subscription required)s
This is the sandbox page for User:Nick Levinson (diff). |
Categorization draft
A new category would be created, probably Category:Pages containing links to subscription-or-libraries content.
Documentation draft
Existing documentation would be edited to reflect the new parameterization.