Vorlage:CAS Example Title: Unterschied zwischen den Versionen

Aus GeoGebra Manual
Wechseln zu: Navigation, Suche
(Created template as part of the structure for tutorials for CAS examples.)
 
(Replaced with the current version. Transclusion from other languages would be nice!)
 
(14 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
 
<!--
 
<!--
 +
Provide the title for a CAS Example page, as used by the templates CAS Example and CAS Example Header.
 +
 
Parameters:
 
Parameters:
  
 +
level  ...  The level of the page to provide the title for. Valid keywords are "all", as in all CAS examples overview page, "meta", as in meta-type overview page, "type", as in overview page for a certain type, "year", as in overview page for a certain year, and "example", as in one specific CAS example.
 +
title  ...  The title preferred by the user. If set and containing something apart from white spce, overwrites the automatically generated title. Use at any but "example" level is discouraged (though working fine).
 
meta ... The meta-type of the example. Valid keywords are "Bayrische Abituraufgabe" and "Österreichische Maturaaufgabe". Omit if not applying.
 
meta ... The meta-type of the example. Valid keywords are "Bayrische Abituraufgabe" and "Österreichische Maturaaufgabe". Omit if not applying.
 
type  ... The type of the example. Valid keywords depend on the meta-type (see above). Valid keywords are:
 
type  ... The type of the example. Valid keywords depend on the meta-type (see above). Valid keywords are:
Zeile 9: Zeile 13:
 
year  ... The year the example was used. Valid only in combination with a meta-type (see above).
 
year  ... The year the example was used. Valid only in combination with a meta-type (see above).
 
-->
 
-->
 
+
{{#if:{{{title| }}}|{{{title}}}|
<!-- Provides the title used in CAS Example pages as title parameter for the templates "CAS Example" and "Tutorial". -->
+
{{#switch: {{{level}}}
{{#ifeq:{{{meta}}}
+
|all=
|Bayrische Abituraufgabe
+
{{CET|CAS Examples}}
|Bayrische Abituraufgabe mit CAS-Einsatz aus dem Jahre {{{year}}} - {{{type}}} {{{subtype}}}
+
|meta=
|
+
<!-- Provides the title used in CAS Example overview pages for a certain meta-type as title parameter for the templates "CAS Example" and "Tutorial". -->
  {{#ifeq:{{{meta}}}
+
{{#switch: {{{meta}}}
  |Österreichische Maturaaufgabe
+
|Bayrische Abituraufgabe=
  |Österreichische Maturaaufgabe mit CAS-Einsatz aus dem Jahre {{{year}}} - {{{type}}} {{{subtype}}}
+
{{CET|Examples from Bavarian Final Exams}} {{CET| using a CAS}}
 +
|Österreichische Maturaaufgabe=
 +
{{CET|Examples from Austrian Final Exams}} {{CET| using a CAS}}
 +
|#default =
 +
{{BASEPAGENAME}}
 +
}}
 +
|type=
 +
<!-- Provides the title used in CAS Example overview pages for a certain type as title parameter for the templates "CAS Example" and "Tutorial". -->
 +
{{#switch:{{{meta}}}
 +
|Bayrische Abituraufgabe=
 +
{{CET|Examples from Bavarian Final Exams}} {{CET| using a CAS}} {{CET|from the field of}} {{CET|{{{type}}}}}
 +
|Österreichische Maturaaufgabe=
 +
{{CET|Examples from Austrian Final Exams}} {{CET| using a CAS}} {{CET|from the field of}} {{CET|{{{type}}}}}
 +
|#default =
 +
{{BASEPAGENAME}}
 +
}}
 +
|year=
 +
<!-- Provides the title used in CAS Example overview pages for a certain year as title parameter for the templates "CAS Example" and "Tutorial". -->
 +
{{#switch:{{{meta}}}
 +
|Bayrische Abituraufgabe=
 +
{{CET|Examples from Bavarian Final Exams}} {{CET| using a CAS}} {{CET|from_year}} {{{year}}}
 +
|Österreichische Maturaaufgabe=
 +
{{CET|Examples from Austrian Final Exams}} {{CET| using a CAS}} {{CET|from_year}} {{{year}}}
 +
|#default =
 +
{{BASEPAGENAME}}
 +
}}
 +
|example=
 +
<!-- Provides the title used in CAS Example pages as title parameter for the templates "CAS Example" and "Tutorial". -->
 +
  {{#switch:{{{meta}}}
 +
|Bayrische Abituraufgabe=
 +
{{CET|Examples from Bavarian Final Exams}} {{CET| using a CAS}} {{CET|from_year}} {{{year}}} - {{CET|{{{type}}}}} {{{subtype}}}
 +
  |Österreichische Maturaaufgabe=
 +
  {{CET|Examples from Austrian Final Exams}} {{CET| using a CAS}} {{CET|from_year}} {{{year}}} - {{CET|{{{type}}}}} {{{subtype}}}
 
  <!-- TODO Adapt the above line to fit Austrian classification of examples best. -->
 
  <!-- TODO Adapt the above line to fit Austrian classification of examples best. -->
  |{{{BASEPAGENAME}}}
+
  |#default =
 +
{{BASEPAGENAME}}
 
  }}
 
  }}
 +
|#default =
 +
{{BASEPAGENAME}}
 
}}
 
}}
 
+
}} <!-- End of "if" for "title" - parameter. -->
[[Category:Utility templates]]
+
<noinclude>[[Category:Utility templates]]</noinclude>

Aktuelle Version vom 11. Mai 2013, 20:01 Uhr

CAS Example Title

© 2024 International GeoGebra Institute