Styleguide: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
Cbarr (talk | contribs)
No edit summary
Cbarr (talk | contribs)
No edit summary
Line 1: Line 1:
[[Image:Default-LP.png|frame|center|alt=Landing Page example with template areas highlighted.|'''Fig. 1:''' An example of a Landing Page with boxed areas added in order to highlight the different templates that set the look and functionality of various areas.]]
==Templates==
[[Image:Default-LP.png|frame|left|alt=Landing Page example with template areas highlighted.|'''Fig. 1:''' An example of a Landing Page with boxed areas added in order to highlight the different templates that set the look and functionality of various areas.]]


[[Image:LPtemplateflow.svg|frame|left|alt=Flow cart showing how information goes from banner to template to template generating a Landing Page.|'''Fig. 2:''' A flow cart showing how information goes from banner to template to template generating a Landing Page.]]
[[Image:LPtemplateflow.svg|frame|center|alt=Flow cart showing how information goes from banner to template to template generating a Landing Page.|'''Fig. 2:''' A flow cart showing how information goes from banner to template to template generating a Landing Page.]]


==Layouts==
==Banner==

==Banners==
Banner settings completely determine which landing page is displayed, in which language, and where the page runs. All banners call the [[Lp-layout-default]] template and pass it the names of 4 templates. The default values follow:
Banner settings completely determine which landing page is displayed, in which language, and where the page runs. All banners call the [[Lp-layout-default]] template and pass it the names of 4 templates. The default values follow:
*[[Template:2011FR/Appeal-template-default]]
*[[Template:2011FR/Appeal-template-default]]
Line 13: Line 10:
*[[Template:2011FR/Form-countryspecific-control]]
*[[Template:2011FR/Form-countryspecific-control]]


===Appeals===
==Appeal===
The "2011FR/'''Appeal-default'''" is used by [[Template:2011FR/Appeal-template-default]] to call the following 2 templates:
The "2011FR/'''Appeal-default'''" is used by [[Template:2011FR/Appeal-template-default]] to call the following 2 templates:
*[[Template:2011FR/Appeal-default/text/en]]
*[[Template:2011FR/Appeal-default/text/en]]
*[[Template:2011FR/Appeal-default/title/en]]
*[[Template:2011FR/Appeal-default/title/en]]


===Payment===
==Payment==
The template that mainly forms the payment form is [[Template:2011FR/Form-template-default]] with the country specific details being set by the template [[Template:2011FR/Form-countryspecific-control]].
The template that mainly ties together the payment form on the right is [[Template:2011FR/Form-template-default]]. The country specific details are set by the template [[Template:2011FR/Form-countryspecific-control]].

==Helper Templates==
*[[Template:2011FR/core-country-region]]
*[[Template:2011FR/core-currency-code]]
*[[Template:2011FR/core-currency-symbol]]
*[[Template:2011FR/lp-social-media]]
*[[Template:AppealAmountSwitch]]
*[[Template:AppealAmountSwitch/en]]
*[[Template:AppealSwitch]]
*[[Template:BP-status]]
*[[Template:BT-status]]
*[[Template:CC-status]]
*[[Template:CountrySwitch]]
*[[Template:DD-status]]
*[[Template:FallbackSwitch]]
*[[Template:Ltr-direction]]
*[[Template:MB-status]]
*[[Template:PP-status]]
*[[Template:RT-status]]
*[[Template:Translationlink]]
*[[Template:YD-status]]

Revision as of 12:18, 10 January 2012

Landing Page example with template areas highlighted.
Fig. 1: An example of a Landing Page with boxed areas added in order to highlight the different templates that set the look and functionality of various areas.
Flow cart showing how information goes from banner to template to template generating a Landing Page.
Fig. 2: A flow cart showing how information goes from banner to template to template generating a Landing Page.

Banner settings completely determine which landing page is displayed, in which language, and where the page runs. All banners call the Lp-layout-default template and pass it the names of 4 templates. The default values follow:

Appeal=

The "2011FR/Appeal-default" is used by Template:2011FR/Appeal-template-default to call the following 2 templates:

Payment

The template that mainly ties together the payment form on the right is Template:2011FR/Form-template-default. The country specific details are set by the template Template:2011FR/Form-countryspecific-control.

Helper Templates